package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 库存表(Store)实体类
 *
 * @author jsm
 * @since 2023-03-26 17:23:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_store")
public class Store implements Serializable {
    private static final long serialVersionUID = 735129271442106686L;
    /**
     * 序号，id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    @TableField(value = "gid")
    private Integer gid;

    /**
     * 商品颜色
     */
    @TableField(value = "color")
    private String color;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private Object price;

    /**
     * 商品库存
     */
    @TableField(value = "stock")
    private Integer stock;
}
